package com.tenbent.product.base.exception;

import java.io.Serializable;

/**
 * 错误对象(用于包装API错误信息)
 *
 * @author Randy
 *
 *         Created by ThinkPad on 2017/8/4.
 */
public class Error implements Serializable {

	public Error(Integer code, String message) {
		this.code = code;
		this.message = message;
	}

	private Integer code; // 错误码

	private String message; // 错误信息

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
